package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
@create: 2022-09-26 11:35
@author: 怀念天空
@Description: 
*/

@Getter
@Setter
@ToString
@NoArgsConstructor
@TableName(value = "material_purchase")
public class MaterialPurchase {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 耗材编号
     */
    @TableField(value = "material_id")
    private Integer materialId;

    /**
     * 采购数量
     */
    @TableField(value = "purchase_num")
    private Integer purchaseNum;

    /**
     * 采购时间
     */
    @TableField(value = "purchase_date")
    private Date purchaseDate;

    /**
     * 支付状态
     */
    @TableField(value = "pay_state")
    private Integer payState;

    /**
     * 总金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 采购状态
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 采购人
     */
    @TableField(value = "staff_id")
    private Integer staffId;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private Material material;
    @TableField(exist = false)
    private StaffBasicInfo handlePeople;
}